package com.ltxtiyu.video.dao.ltx;

import com.ltxtiyu.video.entity.User;
import com.ltxtiyu.video.vo.ms.AddressVO;
import com.ltxtiyu.video.vo.ms.UserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    User selectByMobile(String mobile);

    User selectByUnionId(String unionId);

    int findByParamCount(Map<String, Object> map);

    List<UserVo> findByParamList(Map<String, Object> map);

    List<AddressVO> userAddress();

    int findNumberByProvinceId(Integer provinceId);
}